package com.khalil.kkadmin.common.email;

import lombok.Data;

import java.util.Map;

@Data
public class MailAccount {
    public static final String DEFAULT_PROTOCOL = "smtp";

    private String host;
    private Integer port;
    private String username;
    private String password;
    private String protocol = DEFAULT_PROTOCOL;

    private Map<String, String> properties;

    public MailAccount(String host, Integer port, String username, String password) {
        this.host = host;
        this.port = port;
        this.username = username;
        this.password = password;
    }
}
